﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HadronLicense
{
    public class LicenseManager
    {
        private static LicenseManager s_licenseManager = new LicenseManager();

        private String m_strApplicationName;

        private LicenseManager()
        {
            m_strApplicationName = "";
        }

        private long GenerateHash()
        {
            long lHash = 0;
            foreach (char ch in m_strApplicationName)
                lHash += (long)ch;
            return lHash;
        }

        public static LicenseManager Instance
        {
            get { return s_licenseManager; }
        }

        public String ApplicationName
        {
            get { return m_strApplicationName; }
            set { m_strApplicationName = value; }
        }

        public String GenerateKey()
        {

        }
    }
}
